import request from '../../utils/httpRequest'

const waresku = '/ware/ware/waresku'

// 查询list
export function getWareSkuList (param) {
  return request({
    url: `${waresku}/list`,
    method: 'get',
    param
  })
}

// 根据ids批量删除
export function deleteWareSkuByIds (data) {
  return request({
    url: `${waresku}/delete`,
    method: 'delete',
    data
  })
}

// 根据id查询
export function getWareSkuById (id) {
  return request({
    url: `${waresku}/info/${id}`,
    method: 'get'
  })
}

// 新增
export function saveWareSku (data) {
  return request({
    url: `${waresku}/save`,
    method: 'post',
    data
  })
}

// 修改
export function updateWareSku (data) {
  return request({
    url: `${waresku}/update`,
    method: 'put',
    data
  })
}
